package org.springblade.pm.feign;

import lombok.AllArgsConstructor;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.tool.api.R;
import org.springblade.pm.service.IXmglProjectService;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.HashMap;
import java.util.List;

/**
 * @author LK
 * @version 1.0.0
 * @Title: XmglProjectClient.java
 * @Description: TODO
 * @date 2020/3/31 15:57
 */
@ApiIgnore
@RestController
@AllArgsConstructor
public class XmglProjectClient implements IXmglProjectClient {

	IXmglProjectService service;

	@Override
	public R<List<HashMap<String, Object>>> getProjectListByRoleAndDept(BladeUser bladeUser) {
		return R.data(service.getProjectListByRoleAndDept(bladeUser));
	}
}
